//
//  TKIMFileDownload.h
//  TKIM
//
//  Created by liupm on 15/11/11.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TKIMFileUpDownProtocol.h"

//@interface TKIMFileDownload : TKIMConnection<TKIMFileUpDownProtocol>
@interface TKIMFileDownload : NSObject<TKIMFileUpDownProtocol>
@property(nonatomic,strong) FileUpDownloadUploadFail failCallback;//上传下载失败
@property(nonatomic,strong) FileUpDownloadUploading loadingCallback;//正在上传下载
@property(nonatomic,strong) FileUplDownLoadSuccess successCallback;//上传下载成功
@property(nonatomic,strong) NSMutableData *receiveData;//服务器返回的数据

/**
 *  @Author lpm, 15-12-18 19:12:44
 *
 *  @brief  下载文件
 *
 *  @param urlStr   文件下载地址
 *  @param suffix   存储路径
 *  @param fileName 文件名
 *  @param suffix   后缀
 *  @param extendedAttributes   额外属性
 *  @param complete 完成回调
 *  @param process  进度回调
 *  @param fail     失败回调
 *
 */
- (void)downloadFileWithURL:(NSURL *)url  storagePath:(NSString *)storagePath fileName:(NSString *)fileName suffix:(NSString *)suffix  extendedAttributes:(NSDictionary *)extendedAttributes complete:(FileUplDownLoadSuccess )complete process:(FileUpDownloadUploading) process fail:(FileUpDownloadUploadFail)fail;



@end
